<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var student = new Array();//创建一个新的空数组
        var teacher = [];//利用数组字面量常见数组
        //数组中可以放任意类型数据，用逗号隔开
        var aa = ['小米', true, 12, 19.2,];
        //数组的获取
        //索引（下标）从0开始
        var arr = ['小白', '小黑', '大黄', '瑞奇'];
        //下标       0        1      2       3
        console.log(arr);//获取全部
        console.log(arr[0]);//获取小白
        console.log(arr[2]);//获取大黄
        //数组练习
        var day = ['星期一', '星期二', '星期三', '星期四', '星期五', '星期六', '星期天'];
        console.log(day[6]);
    </script>
</head>

<body>

</body>

</html>